package com.moke.bean
{
	import flash.events.Event;
	import flash.events.ProgressEvent;

	/**
	 * Bean事件
	 * @author fraser
	 *
	 */
	public class BeanEvent extends Event
	{
		public static const OPEN:String=Event.OPEN;
		public static const PROGRESS:String=ProgressEvent.PROGRESS;
		public static const COMPLETE:String=Event.COMPLETE;

		private var _current:int;
		private var _total:int;

		public function BeanEvent(type:String, current:int=0, total:int=0)
		{
			super(type);
			_current=current;
			_total=total;
		}

		public function get current():int
		{
			return _current;
		}

		public function get total():int
		{
			return _total;
		}
	}
}
